package com.ruoyi.project.system.borrow.domain;

import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.project.system.approval.domain.Approval;
import com.ruoyi.project.system.item.domain.Item;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.framework.aspectj.lang.annotation.Excel;
import com.ruoyi.framework.web.domain.BaseEntity;

/**
 * 物品借阅对象 borrow
 *
 * @author stefan
 * @date 2021-11-10
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class Borrow extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    private String id;

    /**
     * 使用用途
     */
    @Excel(name = "使用用途")
    private String yongtu;

    /**
     * 使用时间区间
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "使用时间区间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date timeQujian;

   /* *//**
     * 物品名称
     *//*
    @Excel(name = "物品名称")
    private String itemName;
*/
    /**
     * 物品状态
     */
    @Excel(name = "物品状态")
    private Integer status;

    /**
     * 申请时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "申请时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date applyTime;

    /**
     * 审核领导
     */
    @Excel(name = "审核领导")
    private String promiseLeader;

    /**
     * 物品id
     */
    @Excel(name = "物品id")
    private String itemId;

    /**
     * 物品申请状态
     */
    private Integer applyStatus;

    /**
     * 借阅人姓名
     */
    private String borrowUserName;


    /**
     * 物品信息属性
     */
    private Item item;

    /**
     * 审核领导id
     */
    private String promiseLeaderId;

    /**
     * 领导审核意见
     */
    private String leaderComment;

    /**
     * 审核领导
     */
    private Approval approval;
}
